﻿<UserControl x:Class="BizControl.Presentation.Infrastructure.Controls.CurrentUserImageOnlyControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:infra="clr-namespace:BizControl.Presentation.Infrastructure.Converters">

    <UserControl.Resources>
        <infra:ImageConverter x:Key="ImageConverter" DefaultImageSource="{StaticResource defaultUserImage}" />
    </UserControl.Resources>
    
    <Image Height="40" Width="40"
           Source="{Binding Converter={StaticResource ImageConverter}, Path=Photo}"
           ToolTip="{Binding Path=FullName}"/>
</UserControl>
